package com.xnyzc.lhy.mis.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 日常计费规则表
 *
 * @author rhr
 * @since 2020-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaSysBillRule对象", description = "日常计费规则表")
public class OaSysBillRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "rule_id", type = IdType.INPUT)
    private Long ruleId;

    @ApiModelProperty(value = "规则组ID")
    private Long groupId;

    @ApiModelProperty(value = "城市ID")
    private Integer cityId;

    @ApiModelProperty(value = "渠道ID")
    private Integer channelId;

    @ApiModelProperty(value = "可否抢单")
    private Integer robable;

    @ApiModelProperty(value = "车辆类型（经济、舒适、商务、豪华等）")
    private Integer vehicleType;

    @ApiModelProperty(value = "叫车方式-立即叫车/预约叫车/接机/送机/接站/送站")
    private Integer callType;

    @ApiModelProperty(value = "起步公里")
    private BigDecimal startingMileage;

    @ApiModelProperty(value = "开始的公里")
    private BigDecimal startMileage;

    @ApiModelProperty(value = "结束的公里")
    private BigDecimal endMileage;

    @ApiModelProperty(value = "起步价")
    private BigDecimal startFee;

    @ApiModelProperty(value = "里程费")
    private BigDecimal mileageFee;

    @ApiModelProperty(value = "其他费")
    private BigDecimal otherFee;

    @ApiModelProperty(value = "平台抽成比例")
    private Integer drawRatio;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "规则名称")
    private String rulesName;

    @ApiModelProperty(value = "保险费")
    private Integer premium;

    @ApiModelProperty(value = "规则json集合")
    private String jsonRules;

    @ApiModelProperty(value = "在报价设置此城市此站点类型的编号")
    private Integer rulesNo;

    public static final String  RULES_NO = "rules_no";

    public static final String RULE_ID = "rule_id";

    public static final String GROUP_ID = "group_id";

    public static final String CITY_ID = "city_id";

    public static final String CHANNEL_ID = "channel_id";

    public static final String ROBABLE = "robable";

    public static final String VEHICLE_TYPE = "vehicle_type";

    public static final String CALL_TYPE = "call_type";

    public static final String COMPANY_ID = "company_id";

    public static final String START_MILEAGE = "start_mileage";

    public static final String END_MILEAGE = "end_mileage";

    public static final String START_FEE = "start_fee";

    public static final String MILEAGE_FEE = "mileage_fee";


    public static final String OTHER_FEE = "other_fee";

    public static final String DRAW_RATIO = "draw_ratio";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String RULES_NAME = "rules_name";

    public static final String PREMIUM = "premium";

    public static final String JSON_RULES = "json_rules";
}
